package com.jnu.hospitalexamination.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jnu.hospitalexamination.entity.Checkitem;
import com.jnu.hospitalexamination.entity.Checkitemdetailed;
import com.jnu.hospitalexamination.entity.vo.CheckitemVO;
import com.jnu.hospitalexamination.service.CheckitemService;
import com.jnu.hospitalexamination.mapper.CheckitemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Nowonder
* @description 针对表【checkitem】的数据库操作Service实现
* @createDate 2024-07-21 20:11:05
*/
@Service
public class CheckitemServiceImpl extends ServiceImpl<CheckitemMapper, Checkitem>
    implements CheckitemService{

    @Autowired
    private CheckitemMapper checkitemMapper;
    @Override
    public List<Checkitemdetailed> getCheckitemByOrderId(Integer orderId) {
        return checkitemMapper.getCheckitemdetailedByOrderId(orderId);
    }
    @Override
    public List<CheckitemVO> getCheckitemBySmid(Integer smid){
        return checkitemMapper.selectCheckitemBySmid(smid);
    }

}




